<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, maximum-scale=1, minimum-scale=1, user-scale=1">
    <title></title>
    <style type="text/css" rel="stylesheet">
        .line{
            width:100%;
            background: #000000;
            height: 1px;
            margin-top: 5px;
            margin-bottom: 5px;
        }
    </style>
</head>
<body>
        <p>this is a webview function demo page in assets/webpage, including HTML tag and js function</p>
        <hr/>
        <div>http://<input id="ip" type="text" placeholder="请输入ip地址"/><input id="port" type="text" placeholder="端口号"/></div>
        <button onclick="jsOnload()">打开页面</button> <p/>

</body>


<script type="text/javascript" >
    function setCallBack(fn, msg) {
        document.getElementById("funcName").innerHTML = "callBack Result: " + fn;
        document.getElementById("callback").innerHTML = msg;
    };

    function jsOnload() {
       var ipAdd = document.getElementById("ip").value;
       var port = document.getElementById("port").value || 80;
<!--       var address = "http://" + ipAdd + ":" + port;-->

<!--       window.location.href = address-->
       Android.openUrl(ipAdd, port);

    };

</script>
</html>